<?php
require __DIR__.'/site2/config/config.inc.php';
require_once __DIR__.'/site2/foundation/Templater.php';
//require_once __DIR__.'/site2/includes/CheckOutMgr.class.php';
//require_once(MYSQL);

//$cartMgr= new CheckOutMgr($dbc);


$_main_content = new Templater(__DIR__.'/site2/views/register/default.html');
//$id=$_main_content->getFormValue('id',$dbc);
//if(isset($id))
//$_main_content->set('product',$productMgr->getProduct($id));

$_page = new Templater(__DIR__.'/site2/views/page/page.html');
$_page->set("content", $_main_content->parse());
$_page->publish();